package cn.zhibang.sannuo.maintenance.service.impl;

import cn.zhibang.sannuo.commons.model.Menu;
import cn.zhibang.sannuo.maintenance.dao.MMenuDao;
import cn.zhibang.sannuo.maintenance.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author admin
 * @version 1.0.0
 * @ClassName MenuServiceImpl.java
 * @Description TODO
 * @createTime 2021年04月09日 09:17:00
 */
@Service
public class MenuServiceImpl implements MenuService {

    @Autowired private MMenuDao menuDao;

    @Override
    public List<Menu> selAllMenu() {
        return menuDao.selectAllMenu();
    }

    @Override
    public void upMenu(Menu menu) {
        menuDao.updateMenu(menu);
    }
}
